package org.jash.shopdemo2212;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class CategoryEntity {
    @SerializedName("code")
    private Integer code;
    @SerializedName("message")
    private String message;
    @SerializedName("data")
    private List<DataDTO> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("id")
        private Integer id;
        @SerializedName("category_name")
        private String categoryName;
        @SerializedName("category_icon")
        private Object categoryIcon;
        @SerializedName("parent_id")
        private String parentId;
        @SerializedName("data")
        private List<DataDTO.DataDTO2> data;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public Object getCategoryIcon() {
            return categoryIcon;
        }

        public void setCategoryIcon(Object categoryIcon) {
            this.categoryIcon = categoryIcon;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public List<DataDTO.DataDTO2> getData() {
            return data;
        }

        public void setData(List<DataDTO.DataDTO2> data) {
            this.data = data;
        }

        public static class DataDTO2 {
            @SerializedName("id")
            private Integer id;
            @SerializedName("category_name")
            private String categoryName;
            @SerializedName("category_icon")
            private String categoryIcon;
            @SerializedName("parent_id")
            private String parentId;
            @SerializedName("data")
            private List<?> data;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public String getCategoryName() {
                return categoryName;
            }

            public void setCategoryName(String categoryName) {
                this.categoryName = categoryName;
            }

            public String getCategoryIcon() {
                return categoryIcon;
            }

            public void setCategoryIcon(String categoryIcon) {
                this.categoryIcon = categoryIcon;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public List<?> getData() {
                return data;
            }

            public void setData(List<?> data) {
                this.data = data;
            }
        }
    }
}
